﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace AzureTosser.Services
{
    public interface ITossBus
    {
        string RegisterReceiverPipe(string scope, string topic);
        string RegisterSenderPipe(PipeType type, string scope);
        string RegisterPipe(PipeDefinition pipeDefinition);
        PipeDefinition GetPipeDefinition(string pipeId, bool receive);
        void Send(PipeDefinition pipe, string topic, string message);
        Message Receive(string pipeId, string topic);
    }
}